const util  = require('util');

let obj1 = {name:'daxia',children:{}};
let obj2 = {name:'daxia',children:{name:'xiada'}};

// 对象相等

// 对象里的内容都相等
console.log(util.isDeepStrictEqual(obj1,obj2));